package service

import (
	"gomicro/studentMicro/model"
	"gomicro/studentMicro/webServer/dao"
)

type StudentSriImp struct{
	Dip *dao.StudentDaoImp
}

func (ssi *StudentSriImp)InesrtSri(s *model.Student)map[string]string{
	return ssi.Dip.InesrtDao(s)
}

func (ssi *StudentSriImp)DeleteSri(name string)map[string]string{
	return ssi.Dip.DeleteDao(name) 
}

func (ssi *StudentSriImp)UpdateSri(s *model.Student)map[string]string{
	return ssi.Dip.UpdateDao(s)
}

func (ssi *StudentSriImp)QuerySri() []*model.Student{
	var d = dao.StudentDaoImp{}
	ssi.Dip = &d
	return ssi.Dip.QueryDao()
}